package com.bajiao.admin.controller.common;

import com.bajiao.third.utils.OSSClientUtils;
import com.bajiao.common.api.vo.RestResult;
import com.bajiao.common.menu.ResultEnum;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@Slf4j
@Api(tags="签名")
@RestController
@RequestMapping("/autograph")
public class AutographController {


    @GetMapping(value = "/queryAutograph")
    public RestResult queryAutograph(){
        Map<String, String> result= OSSClientUtils.getSignData();
        return new RestResult(ResultEnum.OPERATION_SUCCESS.getValue(), ResultEnum.OPERATION_SUCCESS.getDesc(),result);
    }
}

